<?php
$title = elgg_echo('submana:submitasg');

// $group = get_entity($vars ['group_guid']);
// $listproj_url = elgg_get_site_url () . "submana/listpro/$group->guid";

// elgg_push_breadcrumb($group->name, $group->getURL());
// elgg_push_breadcrumb($title);
$assignment = get_entity($vars['assign_guid']);
if($assignment){
	$title .= " \"$assignment->title\"";
}
$content = elgg_view_title ($title);

// add form
$form_vars = array('enctype' => 'multipart/form-data');
$content.= elgg_view_form('submitasg', $form_vars, array(
		'assign_guid' => $vars['assign_guid'],
		'entity' => $assignment,
));

// optionally, add the content for the sidebar
$sidebar = "";
$params = array (
		'content' => $content,
		'sidebar' => $sidebar,
);

$body = elgg_view_layout ( 'one_sidebar', $params );
// start building the main column of the page


echo elgg_view_page ( $title, $body );